package com.example.entity;

import com.example.enums.PetSexEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Pet {
    private Integer petId;
    private String petName;
    private Byte petBreed;
    private Byte petSex;
    private String birthday;
    private String description;

    /* ***************************** */
    private String birthdayFormatStr;
    public String getPetSexStr()
    {
        if(petSex == null){
            return "";
        }
        return PetSexEnum.getName(petSex.intValue());
    }
}
